package top.infopub.job.mkt.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.generic.GenericDao;
import top.infopub.model.mkt.BidOpenResult;

import java.util.List;

/**
 * @Author 查询满足开标的未开标数据
 */
@Repository
public interface BidOpenResultDao extends GenericDao<BidOpenResult, String> {
    /**
     * 查询所有满足开标的未开标数据
     * @return
     */
    List<BidOpenResult> queryUnopenList();

    /**
     * 更新开标状态
     * @param biddingStatus 0=未开标，1=已开标
     * @param id
     */
    void modifyBiddingStatus(@Param("biddingStatus") String biddingStatus, @Param("id") String id);
}
